package com.wlhse.test;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * Author:melon
 * Origin:2021/4/25
 **/

public class test {

        public int[] findErrorNums(int[] nums) {
            int[] result=new int[2];
            for (int i=0;i<nums.length;i++) {
                if(nums[i]==nums[i+1])
                    result[0]=nums[i];
                    result[1]=nums[i]+1;
            }

            return result;
        }

}
